import { F } from '../utils/http'
const { GET, POST } = F('customer/')
class CustomerApi {
  constructor() {}
  search = (req) => GET('search', req)
  add = (req) => POST('add', req)
  update = (req) => POST('update', req)
  remove = (id) => GET('remove', { id })
  searchname = (key) => GET('searchname', { key })
}
export default new CustomerApi()
